<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;

?>
<div>
    <?php $form = ActiveForm::begin(['id' => 'role-form', 'options' => ['class' => 'form-validate']]); ?>
    <div class="form_content m_top_10">
        <table width="100%" class="table_form">
            <tbody>
            <tr>
                <th class="zx-goods-table"><?= $model->attributeLabels()['name']; ?>：</th>
                <td><?= $form->field($model, 'name', ['template' => '{input}{error}'])->textInput(['class' => 'input-text', 'readonly' => 'readonly']); ?></td>
            </tr>
            <tr>
                <th class="zx-goods-table"><?= $model->attributeLabels()['description']; ?>：</th>
                <td><?= $form->field($model, 'description', ['template' => '{input}{error}'])->textarea(['class' => 'input-textarea','style' => 'box-sizing:border-box;']); ?></td>
            </tr>
            </tbody>
        </table>
    </div>
    <div class="btn m_top_20"
         style="display: none"><?= Html::submitButton('确定', ['id' => 'dosubmit', 'class' => 'button']); ?></div>
    <?php ActiveForm::end(); ?>
</div>